package com.bcent.mall.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class PmsProductWarehouseRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PmsProductWarehouseRecordExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andProductidIsNull() {
            addCriterion("productId is null");
            return (Criteria) this;
        }

        public Criteria andProductidIsNotNull() {
            addCriterion("productId is not null");
            return (Criteria) this;
        }

        public Criteria andProductidEqualTo(Long value) {
            addCriterion("productId =", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidNotEqualTo(Long value) {
            addCriterion("productId <>", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidGreaterThan(Long value) {
            addCriterion("productId >", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidGreaterThanOrEqualTo(Long value) {
            addCriterion("productId >=", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidLessThan(Long value) {
            addCriterion("productId <", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidLessThanOrEqualTo(Long value) {
            addCriterion("productId <=", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidIn(List<Long> values) {
            addCriterion("productId in", values, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidNotIn(List<Long> values) {
            addCriterion("productId not in", values, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidBetween(Long value1, Long value2) {
            addCriterion("productId between", value1, value2, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidNotBetween(Long value1, Long value2) {
            addCriterion("productId not between", value1, value2, "productid");
            return (Criteria) this;
        }

        public Criteria andProductwarehousecodeIsNull() {
            addCriterion("productWarehouseCode is null");
            return (Criteria) this;
        }

        public Criteria andProductwarehousecodeIsNotNull() {
            addCriterion("productWarehouseCode is not null");
            return (Criteria) this;
        }

        public Criteria andProductwarehousecodeEqualTo(String value) {
            addCriterion("productWarehouseCode =", value, "productwarehousecode");
            return (Criteria) this;
        }

        public Criteria andProductwarehousecodeNotEqualTo(String value) {
            addCriterion("productWarehouseCode <>", value, "productwarehousecode");
            return (Criteria) this;
        }

        public Criteria andProductwarehousecodeGreaterThan(String value) {
            addCriterion("productWarehouseCode >", value, "productwarehousecode");
            return (Criteria) this;
        }

        public Criteria andProductwarehousecodeGreaterThanOrEqualTo(String value) {
            addCriterion("productWarehouseCode >=", value, "productwarehousecode");
            return (Criteria) this;
        }

        public Criteria andProductwarehousecodeLessThan(String value) {
            addCriterion("productWarehouseCode <", value, "productwarehousecode");
            return (Criteria) this;
        }

        public Criteria andProductwarehousecodeLessThanOrEqualTo(String value) {
            addCriterion("productWarehouseCode <=", value, "productwarehousecode");
            return (Criteria) this;
        }

        public Criteria andProductwarehousecodeLike(String value) {
            addCriterion("productWarehouseCode like", value, "productwarehousecode");
            return (Criteria) this;
        }

        public Criteria andProductwarehousecodeNotLike(String value) {
            addCriterion("productWarehouseCode not like", value, "productwarehousecode");
            return (Criteria) this;
        }

        public Criteria andProductwarehousecodeIn(List<String> values) {
            addCriterion("productWarehouseCode in", values, "productwarehousecode");
            return (Criteria) this;
        }

        public Criteria andProductwarehousecodeNotIn(List<String> values) {
            addCriterion("productWarehouseCode not in", values, "productwarehousecode");
            return (Criteria) this;
        }

        public Criteria andProductwarehousecodeBetween(String value1, String value2) {
            addCriterion("productWarehouseCode between", value1, value2, "productwarehousecode");
            return (Criteria) this;
        }

        public Criteria andProductwarehousecodeNotBetween(String value1, String value2) {
            addCriterion("productWarehouseCode not between", value1, value2, "productwarehousecode");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Integer value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Integer value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Integer value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Integer value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Integer value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Integer> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Integer> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Integer value1, Integer value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andInputtimeIsNull() {
            addCriterion("inputTime is null");
            return (Criteria) this;
        }

        public Criteria andInputtimeIsNotNull() {
            addCriterion("inputTime is not null");
            return (Criteria) this;
        }

        public Criteria andInputtimeEqualTo(Long value) {
            addCriterion("inputTime =", value, "inputtime");
            return (Criteria) this;
        }

        public Criteria andInputtimeNotEqualTo(Long value) {
            addCriterion("inputTime <>", value, "inputtime");
            return (Criteria) this;
        }

        public Criteria andInputtimeGreaterThan(Long value) {
            addCriterion("inputTime >", value, "inputtime");
            return (Criteria) this;
        }

        public Criteria andInputtimeGreaterThanOrEqualTo(Long value) {
            addCriterion("inputTime >=", value, "inputtime");
            return (Criteria) this;
        }

        public Criteria andInputtimeLessThan(Long value) {
            addCriterion("inputTime <", value, "inputtime");
            return (Criteria) this;
        }

        public Criteria andInputtimeLessThanOrEqualTo(Long value) {
            addCriterion("inputTime <=", value, "inputtime");
            return (Criteria) this;
        }

        public Criteria andInputtimeIn(List<Long> values) {
            addCriterion("inputTime in", values, "inputtime");
            return (Criteria) this;
        }

        public Criteria andInputtimeNotIn(List<Long> values) {
            addCriterion("inputTime not in", values, "inputtime");
            return (Criteria) this;
        }

        public Criteria andInputtimeBetween(Long value1, Long value2) {
            addCriterion("inputTime between", value1, value2, "inputtime");
            return (Criteria) this;
        }

        public Criteria andInputtimeNotBetween(Long value1, Long value2) {
            addCriterion("inputTime not between", value1, value2, "inputtime");
            return (Criteria) this;
        }

        public Criteria andInputpriceIsNull() {
            addCriterion("inputPrice is null");
            return (Criteria) this;
        }

        public Criteria andInputpriceIsNotNull() {
            addCriterion("inputPrice is not null");
            return (Criteria) this;
        }

        public Criteria andInputpriceEqualTo(BigDecimal value) {
            addCriterion("inputPrice =", value, "inputprice");
            return (Criteria) this;
        }

        public Criteria andInputpriceNotEqualTo(BigDecimal value) {
            addCriterion("inputPrice <>", value, "inputprice");
            return (Criteria) this;
        }

        public Criteria andInputpriceGreaterThan(BigDecimal value) {
            addCriterion("inputPrice >", value, "inputprice");
            return (Criteria) this;
        }

        public Criteria andInputpriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("inputPrice >=", value, "inputprice");
            return (Criteria) this;
        }

        public Criteria andInputpriceLessThan(BigDecimal value) {
            addCriterion("inputPrice <", value, "inputprice");
            return (Criteria) this;
        }

        public Criteria andInputpriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("inputPrice <=", value, "inputprice");
            return (Criteria) this;
        }

        public Criteria andInputpriceIn(List<BigDecimal> values) {
            addCriterion("inputPrice in", values, "inputprice");
            return (Criteria) this;
        }

        public Criteria andInputpriceNotIn(List<BigDecimal> values) {
            addCriterion("inputPrice not in", values, "inputprice");
            return (Criteria) this;
        }

        public Criteria andInputpriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("inputPrice between", value1, value2, "inputprice");
            return (Criteria) this;
        }

        public Criteria andInputpriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("inputPrice not between", value1, value2, "inputprice");
            return (Criteria) this;
        }

        public Criteria andOperrecordidIsNull() {
            addCriterion("operRecordId is null");
            return (Criteria) this;
        }

        public Criteria andOperrecordidIsNotNull() {
            addCriterion("operRecordId is not null");
            return (Criteria) this;
        }

        public Criteria andOperrecordidEqualTo(Long value) {
            addCriterion("operRecordId =", value, "operrecordid");
            return (Criteria) this;
        }

        public Criteria andOperrecordidNotEqualTo(Long value) {
            addCriterion("operRecordId <>", value, "operrecordid");
            return (Criteria) this;
        }

        public Criteria andOperrecordidGreaterThan(Long value) {
            addCriterion("operRecordId >", value, "operrecordid");
            return (Criteria) this;
        }

        public Criteria andOperrecordidGreaterThanOrEqualTo(Long value) {
            addCriterion("operRecordId >=", value, "operrecordid");
            return (Criteria) this;
        }

        public Criteria andOperrecordidLessThan(Long value) {
            addCriterion("operRecordId <", value, "operrecordid");
            return (Criteria) this;
        }

        public Criteria andOperrecordidLessThanOrEqualTo(Long value) {
            addCriterion("operRecordId <=", value, "operrecordid");
            return (Criteria) this;
        }

        public Criteria andOperrecordidIn(List<Long> values) {
            addCriterion("operRecordId in", values, "operrecordid");
            return (Criteria) this;
        }

        public Criteria andOperrecordidNotIn(List<Long> values) {
            addCriterion("operRecordId not in", values, "operrecordid");
            return (Criteria) this;
        }

        public Criteria andOperrecordidBetween(Long value1, Long value2) {
            addCriterion("operRecordId between", value1, value2, "operrecordid");
            return (Criteria) this;
        }

        public Criteria andOperrecordidNotBetween(Long value1, Long value2) {
            addCriterion("operRecordId not between", value1, value2, "operrecordid");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}